#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : crawl1.py
# @Author: 123
# @Date  : 19-6-14
# @Desc  :

import requests


def get_one_page(url):
    headers = {
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome / 55.0.2883.87 Safari / 537.36"
    }
    response = requests.get(url, headers=headers)
    if response.status_code == 200:
        return response.text
    return None


def main():
    url = 'https://maoyan.com/board/4'
    html = get_one_page(url)
    print(html)


main()